import Vue from 'vue'
import App from './App'
import VueI18n from 'vue-i18n'
import store from './store'
import dropdown from './components/dt-dropdown/dt-dropdown.vue'
Vue.use(VueI18n)
Vue.component('dropdown', dropdown)

Vue.config.productionTip = false
Vue.prototype.$store = store;

App.mpType = 'app'


const i18n = new VueI18n({
	locale: 'cn',
	messages: {
		'cn': require('./lang/cn.json'),
		'en': require('./lang/en.json'),
		'jp': require('./lang/jp.json'),
	}
});

Vue.prototype._i18n = i18n
Vue.prototype.$eventHub = new Vue();

const app = new Vue({
	store,
	i18n,
    ...App
})
app.$mount()
